﻿using Selenium;

namespace Medianamik.Tests.Selenium
{
    public static class CommonSeleniumActions
    {
        public static void EnableMultiLanguageFeaturesInProfile(this ISelenium selenium)
        {
            selenium.Click("//div[@id='Entete']/div[1]/a/img");
            selenium.WaitForPageToLoad("30000");
            selenium.Click("link=Préférences");
            selenium.WaitForPageToLoad("30000");
            selenium.Select("ctl00_ctl00_CenterContent_CenterContent_MultiLanguageFeaturesOptions", "label=Activés");
            selenium.Click("ctl00_ctl00_ContextMenu_ContextMenu_btnSave");
            selenium.WaitForPageToLoad("30000");
        }
    }
}